package com.smzd.ccms.dao;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smzd.ccms.domain.ChannelConfig;
import com.smzd.ccms.domain.CompletConfig;
import com.smzd.ccms.mappers.CompletConfigMapper;
import com.smzd.core.dao.AbstractDao;
import com.smzd.core.mappers.IMapper;

@Component
public class CompletConfigDao extends AbstractDao<CompletConfig> {
    @Autowired
    private CompletConfigMapper mapper;
    
    @Override
    protected IMapper<CompletConfig> getMapper() {
        return mapper;
    }

	/**
	 * @Description:
	 * @author fengwei
	 * @date 2014-11-27 下午2:29:12
	 * 
	 * @param elem
	 */
	public void updateComplet(CompletConfig elem) {
		mapper.updateComplet(elem);
	}

	public List<CompletConfig> getAllCompletConfigs() {
		return mapper.getAllCompletConfigs();
	}

	public List<CompletConfig> getCompletConfigsForChannelConfig(ChannelConfig source) {
		return mapper.getCompletConfigsForScope(source.getId());
	}
}